import { h, render, Component } from "../lib/preact.js";
import { useState, useEffect, useCallback, useContext, useRef  } from "../lib/hooks.js";
//import '../styles/main.css'
//import '../styles/yimao.css'
export default class Container extends Component {

    constructor() {
      super();
      this.state = { time: Date.now() };
    }
  
    // Lifecycle: Called whenever our component is created
    componentDidMount() {
      // update time every second
      this.timer = setInterval(() => {
        this.setState({ time: Date.now() });
      }, 1000);
    }
  
    // Lifecycle: Called just before our component will be destroyed
    componentWillUnmount() {
      // stop when not renderable
      clearInterval(this.timer);
    }
  
    render() {
        return <div id="contrainer">
          <button class="btn btn-primary">按钮111</button>
        
            <div id="footer">4234234234</div>
        </div>
      
    }
  }